import request from '@/utils/request'

// 汇付进件
export function register(token,data){
  return request({
    url: 'store/Huifu/register',
    method: 'post',
    params: {token},
    data
  })
}

// 提交绑卡信息
export function update_identification(token,data){
  console.log(data)
  return request({
    url: 'cms/store_bank/edit',
    method: 'post',
    params: {token},
    data
  })
}

//汇付开通业务
export function open_business(token,data){
  return request({
    url: 'store/Huifu/open_business',
    method: 'post',
    params: {token},
    data
  })
}
export function open_business2(token,data){
  return request({
    url: 'store/Huifu/open_business2',
    method: 'post',
    params: {token},
    data
  })
}

//配置小程序
export function mpsetting(token,data){
  return request({
    url: 'store/Huifu/mpsetting',
    method: 'post',
    params: {token},
    data
  })
}
//配置H5
export function mpsettingH5(token,data){
  return request({
    url: 'store/Huifu/mpsettingH5',
    method: 'post',
    params: {token},
    data
  })
}

//开通分账
export function activate_split(token,data){
  return request({
    url: 'store/Huifu/activate_split',
    method: 'post',
    params: {token},
    data
  })
}

//开通钱包
export function activate_wallet(token,data){
  return request({
    url: 'store/Huifu/activate_wallet',
    method: 'post',
    params: {token},
    data
  })
}
